<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<section>
    <h4>esm</h4>
    <ul>
        <li>导出模块 export var a = 1;export var b = {}; export function(){};export {a,b}</li>
        <li>引入模块 import a from 'a'; import {a as test} from 'a'</li>
        <li>优点：浏览器也可以识别</li>
        <li>缺点：浏览器没有全面支持</li>
    </ul>
</section>

</body>
</html>